﻿using System;
using System.Collections.Generic;
using System.Web.UI;
using System.Web.UI.WebControls;
using Kiiro.Common.Entities;
using Kiiro.Common.Interfaces;
using Kiiro.Common.Utility;
using Kiiro.Model;
using Kiiro.SiteDefinition.ControlTemplates;
using Kiiro.SiteDefinition.Core;
using Kiiro.SiteDefinition.MasterPage;
using Microsoft.SharePoint.Search.Query;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
using System.Web;
using Microsoft.SharePoint.Utilities;

namespace Kiiro.SiteDefinition.Search
{
    public partial class SearchResults : BasePage
    {
        protected void Page_Load ( object sender, EventArgs e )
        {
            SearchResultsControl searchResultControl = ( SearchResultsControl ) V2SearchResultsControl;
            searchResultControl.WebUrl = "http://" + Request.Headers [ "Host" ];
            searchResultControl.Keyword = Request.Params [ "k" ] != null ? Request.Params [ "k" ].ToString ( ) : string.Empty;
            searchResultControl.Scope = Request.Params [ "u" ] != null ? Request.Params [ "u" ].ToString ( ) : string.Empty;
            searchResultControl.Start = Request.Params [ "start1" ] != null ? Convert.ToInt32 ( Request.Params [ "start1" ] ) : 1;
        }
    }
}

/*************************************************************************
 * 
 * $Log: /Internal Projects/Kiiro/Kiiro.SiteDefinition/12/TEMPLATE/FEATURES/Kiiro.Search/SearchResults/SearchResults.aspx.cs $
 * 
 * 6     1/06/10 12:39p Camerons
 * 
 * 5     30/09/09 4:08p Camerons
 * Update all links that point to UserPages, pass User.SPUserId as the
 * ItemId so that we can safely run GetOrCreateUser
 * 
 * 4     30/09/09 9:59a Shafia
 * 
 * 3     17/08/09 11:07a Camerons
 * Added check-in comments section
 * 
 ************************************************************************/